package com.framework.service.core.controller;

import com.framework.common.controller.BaseController;
import com.framework.common.response.ResponseBaseBean;
import com.framework.service.core.service.ITouristOrgService;
import com.framework.core.api.request.TouristOrgSnapReq;
import com.framework.service.core.service.ITouristOrgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoubb
 * @version V1.0
 * @Date 2020/5/29 21:27
 * @since JDK 1.8
 */
@RestController
@RequestMapping("/api/touristOrg")
@Api(value = "touristOrgApi", description = "机构免授权服务接口")
public class TouristOrgApiController extends BaseController {

    @Autowired
    private ITouristOrgService touristOrgService;

    @ApiOperation(value = "新增机构用户", httpMethod = "POST")
    @RequestMapping(value = "/createTouristOrg",method = RequestMethod.POST)
    @ResponseBody
    public ResponseBaseBean createTouristOrgForAudit(TouristOrgSnapReq touristOrgSnapReq) {
        return touristOrgService.createTouristOrgForAudit(touristOrgSnapReq);
    }




}
